<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh-CN">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title><?php echo isset($title) ? $title . ' - ' : '', $this -> config -> item('xt_name'); ?>微信系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta content="" name="description"/>
<meta content="" name="author"/>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>
<link href="/mex/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="/mex/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
<link href="/mex/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="/mex/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<link href="/mex/admin/pages/css/login.css" rel="stylesheet" type="text/css"/>
<link href="/mex/global/css/components-md.css" id="style_components" rel="stylesheet" type="text/css"/>
<link href="/mex/global/css/plugins-md.css" rel="stylesheet" type="text/css"/>
<link href="/mex/admin/layout/css/layout.css" rel="stylesheet" type="text/css"/>
<link href="/mex/admin/layout/css/themes/darkblue.css" rel="stylesheet" type="text/css" id="style_color"/>
<link href="/mex/admin/layout/css/custom.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="/mex/favicon.ico"/>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-md login">
<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
<div class="menu-toggler sidebar-toggler">
</div>
<!-- END SIDEBAR TOGGLER BUTTON -->
<!-- BEGIN LOGO -->
<div class="logo">
	<h1 class="text-center text-success"><?php echo $this -> config -> item('xt_name'); ?></h1>
	<h4 class="text-center text-success">CouldXD System</h4>
</div>
<!-- END LOGO -->
<!-- BEGIN LOGIN -->
<div class="content">
	<!-- BEGIN LOGIN FORM -->
	<form class="login-form" action="index.html" method="post">
		<h3 class="form-title">登录</h3>
		<div class="alert alert-danger display-hide erw_login">
			<button class="close" data-close="alert"></button>
			<span>
			抱歉，您无权登录后端！</span>
		</div>

		<img src="<?php echo $ewm; ?>" width="100%" />
		<br /><br /><br />
		<div class="create-account">
			<p>
				<a href="/iadmin/login"  class="uppercase">切换账号密码登录</a>
			</p>
		</div>
	</form>
	<!-- END LOGIN FORM -->
	<!-- END FORGOT PASSWORD FORM -->
</div>
<div class="copyright">
	<?php echo date('Y')?> &copy; <a style="color: #98a6ba;" href="http://www.tcpan.com" title="Lance Pan" target="_blank">LANCE PAN DD</a>
</div>
<!--[if lt IE 9]>
<script src="/mex/global/plugins/respond.min.js"></script>
<script src="/mex/global/plugins/excanvas.min.js"></script> 
<![endif]-->
<script src="/mex/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="/mex/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<script src="/mex/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/mex/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="/mex/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="/mex/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="/mex/global/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="/mex/global/scripts/metronic.js" type="text/javascript"></script>
<script src="/mex/admin/layout/scripts/layout.js" type="text/javascript"></script>
<script src="/mex/admin/layout/scripts/demo.js" type="text/javascript"></script>
<script src="/mex/admin/pages/scripts/login.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<script>
	$(function() {
		setInterval(function() {
			$.ajax({
				type : "post",
				url : "/iadmin/login/do_erw_login",
				dataType : "json",
				data : {
				},
				success : function(msg) {
					if (msg.type == 1) {
						window.location.href = "/adminx";
					}
					if (msg.type == 3) {
						$("#erw_login").show();
					}
				}
			});
		}, 1500);
	});
</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>